<?php
	include "connect.php";
	$result = mysql_query("SELECT * FROM new order by time desc");
	$i = 0;
	while($row = mysql_fetch_array($result)){
		$resultArray[$i] = array(
			'id' => $row['id'],
			'title' => $row['title'],
			'content' => $row['content'],
			'type' => $row['type'],
			'typeName' => $row['typeName'],
			'time' => $row['time']
		);
		$i++;
	}
	mysql_close($con);
	$result = array(
		'status' => 1,
		'data' => $resultArray
	);
	echo json_encode($result);
?>